﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UpdateSlideShow.aspx.cs"
    Inherits="ShopOnline.Admin.UpdateSlideShow" MasterPageFile="~/AdminMaster.master"
    Theme="ShopOnline" %>

<asp:Content runat="server" ID="cUpdateSlideShow" ContentPlaceHolderID="ContentPlaceHolder1">
    <script type="text/javascript">
        $(document).ready(function () {
            $("#<%= ckbShowAlways.ClientID %>").live('change', function () {
                if ($(this).is(':checked')) {
                    $(".txtdate").attr("disabled", "disabled");
                }
                else {
                    $(".txtdate").removeAttr("disabled");
                }
            });
        });
    </script>
    <asp:Label runat="server" ID="lblMessage" />
    <table>
        <tr>
            <td>
                Title
                <label class='required'>
                    *</label>
            </td>
            <td>
                <asp:TextBox ID="txtTitle" runat="server" CssClass="txt" Width="350px" ValidationGroup="addpick" />
                <asp:RequiredFieldValidator ValidationGroup="addpick" ID="RequiredFieldValidator3"
                    runat="server" class='requiredField' ErrorMessage="" Text='' Display="Dynamic"
                    ControlToValidate="txtTitle"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
                URL
                <label class='required'>
                    *</label>
            </td>
            <td>
                <asp:TextBox ID="txtURL" runat="server" CssClass="txt" Width="350px" ValidationGroup="addpick" />
                <asp:RequiredFieldValidator ValidationGroup="addpick" ID="RequiredFieldValidator1"
                    runat="server" class='requiredField' ErrorMessage="" Text='' Display="Dynamic"
                    ControlToValidate="txtURL"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td valign="top">
                Image
                <label class='required'>
                    *</label>
            </td>
            <td>
                <asp:FileUpload ID="fulImage" runat="server" /><br />
                <br />
                <asp:Image runat="server" ID="imgImage" Visible="false" Width="200px" Height="100px"
                    BorderColor="Black" BorderStyle="Solid" BorderWidth="1" />
            </td>
        </tr>
        <tr>
            <td colspan="10">
                <asp:CheckBox ID="ckbShowAlways" runat="server" />
                Show Always
            </td>
        </tr>
        <tr>
            <td colspan="10">
                <div class="fr">
                    <table cellpadding="5" cellspacing="0">
                        <tr>
                            <td>
                                Start Date
                            </td>
                            <td>
                                <asp:TextBox ID="txtStartDate" runat="server" CssClass="txt datepicker txtdate" Width="150px" />
                            </td>
                            <td>
                                Start Time
                            </td>
                            <td>
                                <asp:TextBox ID="txtStartTime" runat="server" CssClass="txt timepicker txtdate" Width="150px" /> (HH:MM)
                            </td>
                        </tr>
                        <tr>
                            <td>
                                End Date
                            </td>
                            <td>
                                <asp:TextBox ID="txtEndDate" runat="server" CssClass="txt datepicker txtdate" Width="150px" />
                            </td>
                            <td>
                                End Time
                            </td>
                            <td>
                                <asp:TextBox ID="txtEndTime" runat="server" CssClass="txt timepicker txtdate" Width="150px" /> (HH:MM)
                            </td>
                        </tr>
                    </table>
                </div>
            </td>
        </tr>
        <tr>
            <td>
                Slot
                <label class='required'>
                    *</label>
            </td>
            <td>
                <asp:TextBox runat="server" ID="txtSlot" CssClass="txt numberic" Width="70px" ValidationGroup="addpick"
                    MaxLength="2" />
                (number)
                <asp:RequiredFieldValidator ValidationGroup="addpick" ID="RequiredFieldValidator4"
                    runat="server" class='requiredField' ErrorMessage="" Text='' Display="Dynamic"
                    ControlToValidate="txtSlot"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td valign="top">
                Description
                <label class='required'>
                    *</label>
            </td>
            <td>
                <asp:TextBox runat="server" ID="txtDescription" CssClass="txt" Width="450px" ValidationGroup="addpick"
                    Rows="5" TextMode="MultiLine" />
                <asp:RequiredFieldValidator ValidationGroup="addpick" ID="RequiredFieldValidator2"
                    runat="server" class='requiredField' ErrorMessage="" Text='' Display="Dynamic"
                    ControlToValidate="txtDescription"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td colspan="10">
                <button id="btnAdd" type="button" runat="server" onserverclick="btnAdd_OnClick" validationgroup="addpick"
                    class="button btn-cart">
                    <span><span>Update Pick</span></span></button>
                <a href="SlideShow.aspx">
                    <button id="btnCancel" type="button" title="Cancel" class="button btn-cart">
                        <span><span>Back</span></span></button></a>
            </td>
        </tr>
    </table>
</asp:Content>
